
<link rel="stylesheet" type="text/css" href="<?php echo site_url('js/menu/menu.css');?>" />
<script type="text/javascript" src="<?php echo site_url('js/menu/menu.js')?>"></script>
<script type="text/javascript">

/*ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})*/

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
    customtheme: ["#414141", "#000000"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
<div id="left">
 <?php echo form_open('directory');?>
            <div class="signUp_area">
            	<ul>
                    <li>
                           	<select class="long" name="services" style="width:170px;">
                            <option value="" <?php if($services == "all_services"){?> selected="selected" <?php } ?>>Categories</option>
                           
                            <?php  foreach($services_list as $service){  if($service['services']=='Category'){?>
                           	<option value="<?php echo $service['id']; ?>" <?php if($services == $service['id']){?> selected="selected" <?php } ?>><?php echo strtolower($service['name']); ?></option>
                            <?php }} ?>
                            
                            </select> 
                       
                    	<div class="clear"></div>
                 	</li>
                      <!--  <li>
                 	<div class="div_list07">Search:</div>
                    	<div class="div_list08">-->
                        <input id="search" class="dir_searchtxt" name="search" type="hidden" value="<?php if(!empty($search)){echo $search;}else{ echo "";}?>" onclick="this.select();" >
                       <!-- </div>
                    	<div class="clear"></div>
                 	</li>-->
                </ul>
                <div class="double_line2">
                	<div class="submitDiv">
                    	<input type="image" src="<?php echo site_url('images') ?>/submit_gray.jpg" height="26" width="99" alt="" />
                       <a href="<?php echo site_url('search') ?>">advance</a> 
                    </div>
                </div>
            </div>
            <?php echo form_close();?>

<!--Begin Dialog Box-->
<?php if(!empty($region_list)){
                              foreach($region_list as $key =>$value){
                             if($value['country'] == '2541')
                            $region_list_1[] = $value;
                            
                            if($value['country'] == '2540')
                            $region_list_2[] = $value;
 
                                             }
                            }?>
<div class="sw"><div class="se"><div class="nw"><div class="ne">
<div id="smoothmenu2" class="ddsmoothmenu-v">
<ul>
    
    <?php if(!empty($region_list_1)){?>
    <h3>Standard Cities</h3>
     <?php foreach($region_list_1 as $key=>$value){?>
     <li>
        <a href="<?php echo site_url('directory/province/'.$value['id'].'/services/all/pages/0');?>">
        <?php echo $value['name']; ?>
        </a>
        <?php if(!empty($services_list)){ ?>
        <ul>
             <?php  foreach($services_list as $service){
                if($service['services']=='Category'){?>
            <li>
                <a href="<?php echo site_url('directory/province/'.$value['id'].'/services/'.$service['id'].'/pages/0');?>">
                <?php echo $service['name'] ?>
                </a>
            </li>
            <?php }
            }?>
            
            
        </ul>
        <?php } ?>
    </li>
    <?php }
    }?>
    
    <?php if(!empty($region_list_2)){?>
        <h3>International</h3>
         <?php foreach($region_list_2 as $key=>$value){?>
                <li><a href="<?php echo site_url('directory/province/'.$value['id'].'/services/all/pages/0');?>"><?php echo $value['name'] ?></a>
                <?php if(!empty($services_list)){?>
                    <ul>
                         <?php  foreach($services_list as $service){
                                    if($service['services']=='Category'){?>
                                <li>
                                <a href="<?php echo site_url('directory/province/'.$value['id'].'/services/'.$service['id'].'/pages/0');?>"><?php echo $service['name'] ?></a>
                               </li>
                                <?php }?>
                                
                        <?php }?>
                    </ul>
                <?php } ?>
                </li>
    <?php }
    }?>
</ul>
</div>
</div></div></div></div>



<!--End dialog Box-->

</div>
